import request from '@/utils/request'

// 查询设备监控列表
export function listDispatchDeviceMonitor(query) {
  return request({
    url: '/system/dispatchDeviceMonitor/list',
    method: 'get',
    params: query
  })
}

// 查询设备监控详细
export function getDispatchDeviceMonitor(deviceMonitorId) {
  return request({
    url: '/system/dispatchDeviceMonitor/' + deviceMonitorId,
    method: 'get'
  })
}

// 新增设备监控
export function addDispatchDeviceMonitor(data) {
  return request({
    url: '/system/dispatchDeviceMonitor',
    method: 'post',
    data: data
  })
}

// 修改设备监控
export function updateDispatchDeviceMonitor(data) {
  return request({
    url: '/system/dispatchDeviceMonitor',
    method: 'put',
    data: data
  })
}

// 删除设备监控
export function delDispatchDeviceMonitor(deviceMonitorId) {
  return request({
    url: '/system/dispatchDeviceMonitor/' + deviceMonitorId,
    method: 'delete'
  })
}
